package managers;

import core.Crawler;
import workers.BaseWorker;

public class FoundPagesManager extends BaseManager 
{

	public FoundPagesManager( int numWorkers, int queueMultiplier ) 
	{
		super("Found Pages Manager");
	
		this.setQueueSizeMultiplier( queueMultiplier );
		
		for (int i = 0; i < numWorkers; i++)
		{
			this.addWorker( new BaseWorker("Found Pages Worker #" + i) );
		}
	}
	
	public void beforeGoingToSleepNoJob()
	{
		Crawler.getInstance().notifyAcceptedPagesManager();
	}

}
